<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改试题')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-items-edit" th:object="${examItems}">
            <input name="eid" th:field="*{eid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">试题题目：</label>
                <div class="col-sm-8">
                    <input name="ename" th:field="*{ename}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">试卷id：</label>
                <div class="col-sm-8">
                    <input name="epaperid" th:field="*{epaperid}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">试题应得分数：</label>
                <div class="col-sm-8">
                    <input name="escore" th:field="*{escore}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">试卷难易程度,默认是1：</label>
                <div class="col-sm-8">
                    <input name="edegree" th:field="*{edegree}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">a选项：</label>
                <div class="col-sm-8">
                    <input name="ea" th:field="*{ea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">b选项：</label>
                <div class="col-sm-8">
                    <input name="eb" th:field="*{eb}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">c选项：</label>
                <div class="col-sm-8">
                    <input name="ec" th:field="*{ec}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">d选项：</label>
                <div class="col-sm-8">
                    <input name="ed" th:field="*{ed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">e选项：</label>
                <div class="col-sm-8">
                    <input name="ee" th:field="*{ee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">f选项：</label>
                <div class="col-sm-8">
                    <input name="ef" th:field="*{ef}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">试题答案：</label>
                <div class="col-sm-8">
                    <input name="ekeys" th:field="*{ekeys}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">试题解析：</label>
                <div class="col-sm-8">
                    <input name="ehints" th:field="*{ehints}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/items";
        $("#form-items-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-items-edit').serialize());
            }
        }
    </script>
</body>
</html>